package com.atguigu.aopstatic;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-16
 * @Description:
 * @Version: 1.0
 */
public class CaclImplProxy implements Cacl {
    private Cacl cacl;

    public CaclImplProxy(Cacl cacl) {
        this.cacl = cacl;
    }

    @Override
    public int add(int a, int b) {
        MyLogging.methodBefore("add", a, b);
        int result=cacl.add(a,b);
        MyLogging.methodAfter("add",result);
        return result;
    }
}
